﻿using System;
using Jiubang.Util;

namespace Jiubang.Communication.Clients {
    /// <summary>
    /// 远程服务端执行时请求返回异常
    /// </summary>
    public sealed class TransactionFailException : Exception{
        private readonly byte[] requestMessage;

        public TransactionFailException(byte[] requestMessage){
            this.requestMessage = requestMessage;
        }

        public override string Message { get { return "远程服务端在执行请求[" + StringHelper.ConcatEnumerable(requestMessage, ",") + "]返回错误"; } }
    }
}